package com.library.bookmanagement.mapper;

import com.github.pagehelper.Page;
import com.library.bookmanagement.entity.Book;

import java.util.List;

/**
 * @author ：ZXM
 * @date ：Created in 2020/5/8 16:52
 * @description：t_book数据表映射接口
 */
public interface BookMapper {
    int deleteByPrimaryKey(Integer bId);

    int insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(Integer bId);

    int updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKey(Book record);

    Page<Book> selectByName(String name);

    Page<Book> selectBookList();
    Integer selectBookCountList();

    Page<Book> selectByType(Integer bookType);

    List<Book> selectByTypeAndName(Integer bookType,String bookName);

    Page<Book> selectBookIsLoad();
}